package com.weiyan.blog;

import com.weiyan.blog.utils.IdWorker;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.context.annotation.Bean;

/**
 * @author misterWei
 * @create 2020年01月17号:17点18分
 * @mailbox mynameisweiyan@gmail.com
 */
@SpringBootApplication(scanBasePackages = "com.weiyan.blog.*")
@EnableEurekaClient
public class IndexControllerStart {

    public static void main(String[] args) {
        SpringApplication.run(IndexControllerStart.class,args);
    }

    @Bean
    public IdWorker idWorker(){
        return new IdWorker();
    }
}
